<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/UI/Page/setup_home_page_m4.c 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_c78dc1806c68fd338fba226975244931.html">UI</a></li><li class="navelem"><a class="el" href="dir_25d44ec6257672254111041d2f097be1.html">Page</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">setup_home_page_m4.c</div></div>
</div><!--header-->
<div class="contents">
<a href="setup__home__page__m4_8c.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#include &quot;<a class="code" href="ui_8h.html">ui.h</a>&quot;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;<a class="code" href="ui__event_8h.html">ui_event.h</a>&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="setup__home__page__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui);</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="setup__home__page__m4_8c.html#afb77653567b2b50aef74a97266462f0c">   34</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="setup__home__page__m4_8c.html#afb77653567b2b50aef74a97266462f0c">setup_home_page_m4</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui)</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>{</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    <span class="comment">// Write codes scr_home_tab_m4_imgbtn_home</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acf9d5c91222d5a01f5fc8b231245a66f">scr_home_tab_m4_imgbtn_home</a> = lv_imgbtn_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#af429e02400b85680d86bc9f3ca98fc1e">scr_home_tab_m4</a>, NULL);</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acf9d5c91222d5a01f5fc8b231245a66f">scr_home_tab_m4_imgbtn_home</a>,</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>                   <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(0, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 2)),</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>                   ICON_HB_H);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acf9d5c91222d5a01f5fc8b231245a66f">scr_home_tab_m4_imgbtn_home</a>,</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>                    ICON_HB_W,</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>                    ICON_HB_H);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acf9d5c91222d5a01f5fc8b231245a66f">scr_home_tab_m4_imgbtn_home</a>, LV_BTN_STATE_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acf9d5c91222d5a01f5fc8b231245a66f">scr_home_tab_m4_imgbtn_home</a>, LV_BTN_STATE_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acf9d5c91222d5a01f5fc8b231245a66f">scr_home_tab_m4_imgbtn_home</a>, LV_BTN_STATE_CHECKED_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acf9d5c91222d5a01f5fc8b231245a66f">scr_home_tab_m4_imgbtn_home</a>, LV_BTN_STATE_CHECKED_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    <span class="comment">// Write codes scr_home_tab_m4_imgbtn_back</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4e0e0b8e46737daf253cd49eb51e05e7">scr_home_tab_m4_imgbtn_back</a> = lv_imgbtn_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#af429e02400b85680d86bc9f3ca98fc1e">scr_home_tab_m4</a>, NULL);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>    lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4e0e0b8e46737daf253cd49eb51e05e7">scr_home_tab_m4_imgbtn_back</a>,</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>                   <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(1, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 2)),</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>                   ICON_HB_H);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4e0e0b8e46737daf253cd49eb51e05e7">scr_home_tab_m4_imgbtn_back</a>,</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>                    ICON_HB_W,</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>                    ICON_HB_H);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4e0e0b8e46737daf253cd49eb51e05e7">scr_home_tab_m4_imgbtn_back</a>, LV_BTN_STATE_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4e0e0b8e46737daf253cd49eb51e05e7">scr_home_tab_m4_imgbtn_back</a>, LV_BTN_STATE_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4e0e0b8e46737daf253cd49eb51e05e7">scr_home_tab_m4_imgbtn_back</a>, LV_BTN_STATE_CHECKED_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4e0e0b8e46737daf253cd49eb51e05e7">scr_home_tab_m4_imgbtn_back</a>, LV_BTN_STATE_CHECKED_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    <span class="comment">// Write codes scr_home_tab_m4_imgbtn_synwit_m4[]</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>    <span class="keywordflow">for</span> (uint8_t i = 0; i &lt; <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>) / <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i]); ++i)</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    {</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>        ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i] = lv_imgbtn_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#af429e02400b85680d86bc9f3ca98fc1e">scr_home_tab_m4</a>, NULL);</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>        lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i],</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>                       <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(i, 0, ICON_M0_M4_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_M0_M4_W, 2)),</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>                       <a class="code hl_define" href="ui_8h.html#af3e9088ad151a8970bb55f57d35a66da">GET_Y</a>(0, ICON_HB_H * 2, ICON_M0_M4_H, <a class="code hl_define" href="ui_8h.html#af5ff5bf99f6040aa647643d0578071d6">GET_OFFSET_Y</a>(LV_VER_RES_MAX - ICON_HB_H * 2, ICON_M0_M4_H, 1)));</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>        lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i],</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>                        ICON_M0_M4_W,</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>                        ICON_M0_M4_H);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>        lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i], LV_BTN_STATE_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 11 + i].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>        lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i], LV_BTN_STATE_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 11 + i].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>        lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i], LV_BTN_STATE_CHECKED_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 11 + i].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>        lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i], LV_BTN_STATE_CHECKED_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 11 + i].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    }</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>    <span class="comment">// Set Style for scr page</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>    <a class="code hl_function" href="setup__home__page__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(ui);</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>    <span class="comment">// Init events for scr page</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>    <a class="code hl_function" href="ui__event_8c.html#a6dbae8eeb24298bef6c9090399d4f88c">events_init_home_page_m4</a>(ui);</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>}</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="setup__home__page__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">   88</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="setup__home__page__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui)</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>{</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>    <span class="comment">// 添加图标样式</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acf9d5c91222d5a01f5fc8b231245a66f">scr_home_tab_m4_imgbtn_home</a>, LV_IMGBTN_PART_MAIN, &amp;<a class="code hl_variable" href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a>);</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4e0e0b8e46737daf253cd49eb51e05e7">scr_home_tab_m4_imgbtn_back</a>, LV_IMGBTN_PART_MAIN, &amp;<a class="code hl_variable" href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a>);</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    <span class="keywordflow">for</span> (uint8_t i = 0; i &lt; <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>) / <span class="keyword">sizeof</span>(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i]); ++i)</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>    {</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>        lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">scr_home_tab_m4_imgbtn_synwit_m4</a>[i], LV_IMGBTN_PART_MAIN, &amp;<a class="code hl_variable" href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a>);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>    }</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>}</div>
<div class="ttc" id="aimage__source_8c_html_aad0609e68f74eb0a9760a3fc0f604794"><div class="ttname"><a href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a></div><div class="ttdeci">img_hash_t Image_Table[IMG_MAX_NUM]</div><div class="ttdoc">图片资源文件映射表</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8c_source.html#l00025">image_source.c:25</a></div></div>
<div class="ttc" id="aimage__source_8h_html_a5766095671f07f4d50bd8a45777ab29a"><div class="ttname"><a href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a></div><div class="ttdeci">#define ICON_IMG_START</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00045">image_source.h:45</a></div></div>
<div class="ttc" id="asetup__home__page__m4_8c_html_ace6d825503d92b9fa25e9433e6a5e3e1"><div class="ttname"><a href="setup__home__page__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a></div><div class="ttdeci">static void setup_style(lv_ui *ui)</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__m4_8c_source.html#l00088">setup_home_page_m4.c:88</a></div></div>
<div class="ttc" id="asetup__home__page__m4_8c_html_afb77653567b2b50aef74a97266462f0c"><div class="ttname"><a href="setup__home__page__m4_8c.html#afb77653567b2b50aef74a97266462f0c">setup_home_page_m4</a></div><div class="ttdeci">void setup_home_page_m4(lv_ui *ui)</div><div class="ttdoc">创建 M4 页</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__m4_8c_source.html#l00034">setup_home_page_m4.c:34</a></div></div>
<div class="ttc" id="astructimg__hash__t_html_a15a9da58fa9768c427dbd548764b2009"><div class="ttname"><a href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img_hash_t::img</a></div><div class="ttdeci">lv_img_dsc_t * img</div><div class="ttdoc">图片资源</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00092">image_source.h:92</a></div></div>
<div class="ttc" id="astructlv__ui_html"><div class="ttname"><a href="structlv__ui.html">lv_ui</a></div><div class="ttdoc">UI 布局设计</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00130">ui.h:131</a></div></div>
<div class="ttc" id="astructlv__ui_html_a4dcedf3b601a32eca1fa7df06cf31d73"><div class="ttname"><a href="structlv__ui.html#a4dcedf3b601a32eca1fa7df06cf31d73">lv_ui::scr_home_tab_m4_imgbtn_synwit_m4</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_m4_imgbtn_synwit_m4[2]</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00155">ui.h:155</a></div></div>
<div class="ttc" id="astructlv__ui_html_a4e0e0b8e46737daf253cd49eb51e05e7"><div class="ttname"><a href="structlv__ui.html#a4e0e0b8e46737daf253cd49eb51e05e7">lv_ui::scr_home_tab_m4_imgbtn_back</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_m4_imgbtn_back</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00154">ui.h:154</a></div></div>
<div class="ttc" id="astructlv__ui_html_acf9d5c91222d5a01f5fc8b231245a66f"><div class="ttname"><a href="structlv__ui.html#acf9d5c91222d5a01f5fc8b231245a66f">lv_ui::scr_home_tab_m4_imgbtn_home</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_m4_imgbtn_home</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00153">ui.h:153</a></div></div>
<div class="ttc" id="astructlv__ui_html_af429e02400b85680d86bc9f3ca98fc1e"><div class="ttname"><a href="structlv__ui.html#af429e02400b85680d86bc9f3ca98fc1e">lv_ui::scr_home_tab_m4</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_m4</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00152">ui.h:152</a></div></div>
<div class="ttc" id="aui_8c_html_ae198236d3c142466346a28ea4222e760"><div class="ttname"><a href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a></div><div class="ttdeci">lv_style_t Style_Common_Btn</div><div class="ttdoc">按钮图标全局统一样式</div><div class="ttdef"><b>Definition:</b> <a href="ui_8c_source.html#l00032">ui.c:32</a></div></div>
<div class="ttc" id="aui_8h_html"><div class="ttname"><a href="ui_8h.html">ui.h</a></div><div class="ttdoc">UI 页面布局</div></div>
<div class="ttc" id="aui_8h_html_a0f5436e65f0809b6db4215a2fa2ff4cb"><div class="ttname"><a href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a></div><div class="ttdeci">#define GET_X(i, s, w, offset)</div><div class="ttdoc">在[s, s + x]区间 : 按 offset 偏移对齐宽为 w 的 ICON =&gt; 得出对齐第 i 个 ICON 的绝对位置 - x轴</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00084">ui.h:84</a></div></div>
<div class="ttc" id="aui_8h_html_ac0a0ec2ce739f6d59caa4619cdd123f9"><div class="ttname"><a href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a></div><div class="ttdeci">#define GET_OFFSET_X(x, w, n)</div><div class="ttdoc">在[0, x]区间 : 对齐 n 个宽为 w 的 ICON =&gt; 均等取得每个 ICON 相对偏移 - x轴 [0 &lt;- (offset) -&gt; icon_w &lt;- (offset) -&gt; icon_w...</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00078">ui.h:78</a></div></div>
<div class="ttc" id="aui_8h_html_af3e9088ad151a8970bb55f57d35a66da"><div class="ttname"><a href="ui_8h.html#af3e9088ad151a8970bb55f57d35a66da">GET_Y</a></div><div class="ttdeci">#define GET_Y(i, s, h, offset)</div><div class="ttdoc">在[s, s + y]区间 : 按 offset 偏移对齐高为 h 的 ICON =&gt; 得出对齐第 i 个 ICON 的绝对位置 - y轴</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00100">ui.h:100</a></div></div>
<div class="ttc" id="aui_8h_html_af5ff5bf99f6040aa647643d0578071d6"><div class="ttname"><a href="ui_8h.html#af5ff5bf99f6040aa647643d0578071d6">GET_OFFSET_Y</a></div><div class="ttdeci">#define GET_OFFSET_Y(y, h, n)</div><div class="ttdoc">在[0, y]区间 : 对齐 n 个高为 h 的 ICON =&gt; 均等取得每个 ICON 相对偏移 - y轴 [0 &lt;- (offset) -&gt; icon_h &lt;- (offset) -&gt; icon_h...</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00094">ui.h:94</a></div></div>
<div class="ttc" id="aui__event_8c_html_a6dbae8eeb24298bef6c9090399d4f88c"><div class="ttname"><a href="ui__event_8c.html#a6dbae8eeb24298bef6c9090399d4f88c">events_init_home_page_m4</a></div><div class="ttdeci">void events_init_home_page_m4(lv_ui *ui)</div><div class="ttdoc">主桌面 M4 页注册事件回调</div><div class="ttdef"><b>Definition:</b> <a href="ui__event_8c_source.html#l00594">ui_event.c:594</a></div></div>
<div class="ttc" id="aui__event_8h_html"><div class="ttname"><a href="ui__event_8h.html">ui_event.h</a></div><div class="ttdoc">UI 页面事件回调</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
